<!--
 * @Descripttion: 编辑组件
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-09-10 11:23:56
 * @LastEditors: GW
 * @LastEditTime: 2021-12-23 09:32:19
-->
<template>
    <section>
        <component :is="type" :data.sync="data"></component>
    </section>
</template>

<script>
import Input from './input'
import Select from './select'
import Radio from './radio'
import Texts from './text'
import Checkbox from './checkbox'
import Link from './link'
import Date from './date'
import Numbers from './number'
import Textarea from './textarea'
import Picture from './picture'
import Video from './video'
import Phone from './phone'
import Inputfrom from './inputfrom'
import Sex from './sex'
import Birthday from './birthday'
import Invitedate from "./invitedate"
import Divider from "./divider"

export default {
    components: {
        Input, Select, Radio, Texts, Checkbox, Link, Date, Numbers, Textarea, Picture, Video, Inputfrom, Sex, Birthday, Phone, Divider, Invitedate
    },
    props: {
        type: {
            type: String
        },
        data: {
            type: Object,
            default: {}
        }
    }
}
</script>

<style>
</style>